package com.itbaizhan;

import java.util.Arrays;

public class TestObject02 {
    public static void main(String[] args) {
        Object[] a0 = {"工号","姓名","年龄","岗位","薪资","补助"};
        Object[] a1 = {1001,"高 淇",18,"程序员",30000,5000};
        Object[] a2 = {1002,"高小二",19,"讲 师",35000,2000};
        Object[] a3 = {1003,"高小松",20,"教 授",20000,3000};

        Object[][] t = new Object[4][];

        t[0] = a0;
        t[1] = a1;
        t[2] = a2;
        t[3] = a3;
        //打印数组
        for(int i=0;i<t.length;i++) {
            System.out.println(Arrays.toString(t[i]));
        }
        //遍历数组
        for(int i=0;i<t.length;i++){
            for (int j=0;j<t[i].length;j++) {
                System.out.print(t[i][j]+"\t");
            }
            System.out.println();
        }
    }
}
